package cn.wolfcode.crm.util;

import java.lang.reflect.Method;

public abstract class StringUtils {
    public static String getExpression(Method method){
        Class<?> clzz = method.getDeclaringClass();
        String className = clzz.getSimpleName();
        String methodName = method.getName();
        className = ((className.charAt(0) + "").toLowerCase() + className.substring(1));
        String expression = className + ":" + methodName;
        return expression;
    }
}
